home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
vmed.arc
/
ED3A.CCC
< prev
next >
Wrap
Text File
|
1985-12-03
|
1KB
|
72 lines
/* Screen editor: command mode commands (extra)
*
* Module: ed3a/ccc
* Date: November 14, 1983
* Changed: February 19, 1984
*/
/* message handler */
outm(numb) char numb;
{ char *sptr;
switch(numb) {
case badmove:
sptr = "invalid move";
break;
case badcopy:
sptr = "invalid copy";
break;
case backwards:
sptr = "can't output backwards";
break;
case filenot:
sptr = "file not found";
break;
case noarg:
sptr = "no file argument";
break;
case patnotfnd:
sptr = "pattern not found";
break;
case linetrun:
sptr = "line truncated";
break;
case filname:
sptr = "file not named";
break;
case cancel:
sptr = "cancelled";
break;
case toomany:
sptr = "too many ?'s in change mask";
break;
case badarg:
sptr = "bad argument";
break;
case nltolong:
sptr = "new line too long";
break;
case badnum:
sptr = "bad line number";
break;
case cmdfnd:
sptr = "command not found";
break;
case smask:
sptr = "search mask? ";
break;
default:
syserr("Unknown Message Code");
return;
}
if (numb >= smask)
fmtsout(sptr,0);
else
message(sptr);
}
/* print message from a command */
message(s) char *s;
{ fmtsout(s,0);
fmtcrlf();
}